package com.activiti.z_six.mapper.taskAssigneeMapper;

import com.activiti.z_six.entity.taskAssignee.OvTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OvTaskEntityMapper {
    /*
    根据task获取任务实例
     */
    OvTaskEntity ovTaskEntity(String id);
    /*
    根据执行人与流程定义id获取
     */
    List<OvTaskEntity> ovTaskEntityList(OvTaskEntity taskEntity);
    /*
    根据流程实例ID获取
     */
    List<OvTaskEntity> ovTaskEntityByProcessInsId(String processInsid);
    /*
    修改任务状态
     */
    int setTaskStatus(OvTaskEntity taskEntity);
    int setTaskStatusToReturn(OvTaskEntity taskEntity);
    /*
    删除任务
     */
    int delete(OvTaskEntity taskEntity);
}
